package com.cn.lxz.lot.http

class BaseBean<T> {
    var data: T? = null
    var state = 0
    var code = 0
    var msg: String? = null
}



data class Message(
    val msgType: Int,
    val params: Params
)

data class Params(
    val actionId: Int,
    val actionType: String,
    val index: Int,
    val info: String,
    val switchs: List<Switch>
)

data class Switch(
    val index: Int,
    val `open`: Int

) {
    override fun toString(): String {
        return "Switch(index=$index, `open`=$`open`)"
    }
}